package com.ajr.core;

import java.util.ArrayList;
import java.util.Iterator;

public class OrderProductAttributes {
	ArrayList options = new ArrayList();
	public void add(String option,String value) {
		String s = "    - "+option+": "+value;
		options.add(s);
	}
	
	public String getOptions() {
		StringBuffer sbf = new StringBuffer();
		for (Iterator iterator = options.iterator(); iterator.hasNext();) {
			String type = (String) iterator.next();
			if(sbf.length()>0) {
				sbf.append(",");
			}
			sbf.append(type);
		}
		return sbf.toString();
		
	}
	
	public int getOptionsSize(){
		return options.size();
	}
	
	public String getOptions(int i) {
		try {
			return (String)options.get(i);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return "";
	}


}
